<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
<script type="text/javascript">
	
	window.onload = function(){
		document.getElementById("btn").onclick = function(){
//			修改图片的src属性值
			document.getElementById("pic").setAttribute('src','meinv.jpg');
		}
	}
	
	
</script>
	</head>
	<body>
		
		<input type="button" value="去整容" id="btn" />
		<br /><br />
		<img src="ruhua.jpg" id="pic"/>
		
	</body>
</html>
